package org.github.manx98.jlibhac.fssystem;

/**
 * @author Manx98
 * @version 1.0
 * @since 2022/10/4 2:04
 */
public enum NcaFormatType {
    Romfs,
    Pfs0;

    public static NcaFormatType valueOf(byte value) {
        switch (value) {
            case 0:
                return Romfs;
            case 1:
                return Pfs0;
        }
        throw new IllegalArgumentException("Invalid value: " + value);
    }
}
